package com.zff.rental.mapstruct.apartment;

import com.zff.rental.entity.apartment.DeviceDictEntity;
import com.zff.rental.vo.apartment.deviceDict.DeviceDictVo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author HCY
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface DeviceMapstruct {
    DeviceMapstruct INSTANCE = Mappers.getMapper(DeviceMapstruct.class);

    List<DeviceDictVo> map(List<DeviceDictEntity> deviceDictList);

    DeviceDictVo map(DeviceDictEntity saveResult);
}
